<?php

/**
 * @desc casbin.php 配置信息
 * @author Tinywan(ShaoBo Wan)
 * @date 2021/10/28 11:16
 */

return [
    'default' => 'basic',
    'enforcers' => [
        'basic' => [
            # Model 设置
            'model' => [
                'config_type' => 'file',
                'config_file_path' => config_path() . '/casbin-basic-model.conf',
                'config_text' => ''
            ],
            # 适配器
            'adapter' => webman\permission\adapter\DatabaseAdapter::class,
            # 数据库表和连接
            'database' => [
                'connection' => '',
                'rules_table' => 'train_rule',
                'rules_name' => 'rule',
            ],
            # 多进程策略定时刷新时间，单位秒
            'policy_refresh_time_interval' => 30,
        ],
    ]
];
